<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X0YHVTDQVR"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-X0YHVTDQVR');

  <% if (current_user) %>
    gtag('set', { 'user_id': '<%= current_user.id %>' }); // Set the user ID using signed-in user_id.
  <% end %>
</script>
